# coding=utf8

# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This class is auto generated by the jdcloud code generator program.

from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest


class DescribeLiveBillDataRequest(JDCloudRequest):
    """
    查询直播计费账单用量数据
允许通过条件过滤查询，支持的过滤字段如下：
  - startTime[eq]  账单开始时间
  - endTime[eq]    账单结束时间
  - billType[eq]   账单计费类型
  - userPin[like]  用户PIN

    """

    def __init__(self, parameters, header=None, version="v1"):
        super(DescribeLiveBillDataRequest, self).__init__(
            '/liveBillDatas', 'GET', header, version)
        self.parameters = parameters


class DescribeLiveBillDataParameters(object):

    def __init__(self, ):
        """
        """

        self.filters = None

    def setFilters(self, filters):
        """
        :param filters: (Optional) 传参字段描述:
  startTime(必填) : 2019-08-21T16:15:10Z
  endTime(必填)   : 2019-08-21T18:10:10Z
  billType(非必填)  :
    enum:
      - 1   (online)
      - 2   (offline)
  userPin(非必填)   : mt_test

        """
        self.filters = filters

